USE [HISDATA3]
GO

/****** Object:  Table [dbo].[AP_PreRegist_DongRuan]    Script Date: 05/13/2019 21:55:32 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[AP_PreRegist_DongRuan](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[PatientId] [varchar](20) NOT NULL,
	[PatientName] [varchar](50) NOT NULL,
	[KSCode] [varchar](20) NOT NULL,
	[KSName] [varchar](100) NOT NULL,
	[YSCode] [varchar](20) NOT NULL,
	[YSName] [varchar](100) NOT NULL,
	[TitleCode] [varchar](20) NOT NULL,
	[TitleName] [varchar](100) NOT NULL,
	[Address] [varchar](256) NOT NULL,
	[CheckGroupCode] [varchar](20) NOT NULL,
	[CheckGroupName] [varchar](100) NOT NULL,
	[RegistMoney] [money] NOT NULL,
	[PayMoney] [money] NOT NULL,
	[TimeInterval] [varchar](100) NOT NULL,
	[RegistDate] [datetime] NOT NULL,
	[PreOperDate] [datetime] NOT NULL,
	[IsFinish] [bit] NOT NULL,
	[sourceNumber] [varchar](100) NULL,
	[transFlow] [varchar](100) NULL,
	[transactionTime] [datetime] NULL,
	[currentNumber] [varchar](100) NULL,
	[queueNumber] [varchar](100) NULL,
	[clinicRange] [varchar](100) NULL,
	[Sex] [int] NULL,
	[duty] [varchar](100) NULL,
	[FPNum] [int] NULL,
	[IsReservation] [bit] NOT NULL,
 CONSTRAINT [PK_AP_PreRegist_DongRuan] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


